from abe import MyABE

pub_key,master_key = MyABE.setup()
user_private_key = MyABE.gen_user_priv_key(
    pub_key,
    master_key,
    ["VIP 用户"]
)
msg = """你好-------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
"""
cipertext = MyABE.encrypt(pub_key,msg,["VIP 用户","普通用户"])
print(cipertext)
msg = MyABE.decrypt(pub_key,user_private_key,cipertext)
print(msg)